#pragma once
#include "Day.h"
#include "E_Meeting.h"

class E_Day: public Day {
public:
	E_Day(void);
	~E_Day(void);
	E_Day(const E_Day& day);
	E_Day& operator =(E_Day &day);

	// add an meeting to the day
	virtual bool addMeeting(Meeting &meeting);

	// remove an meeting from the day
	virtual bool removeMeeting(Meeting &meeting);

	// return meeting by the given time or 
	virtual const E_Meeting* getMeeting(float startTime, const string& name) const;

	//change meeting to a new time
	virtual bool changeMeetingTime(Meeting &meeting, float newTime);

	// return a string representation of the day
	virtual string toString() const;

protected:
	vector<E_Meeting> meetings;
};

